# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-htmlentities
_pyver=3.13
pkgver=0.3.0
pkgrel=9
pkgdesc='HTML Entities for Python.'
arch=('any')
url='https://pypi.org/project/htmlentities/#files'
license=('custom:unknown')
depends=('python' 'python-six')
makedepends=('python-setuptools')
source=("https://github.com/cobrateam/python-htmlentities/archive/$pkgver.tar.gz")
sha512sums=('9f2f59c5ab0c07548ea76dc02cc3c1a34715c4bcfff58301589d39e730a3bf6ef8104a8fefc998e181966c59be074e7b34c430cfe862e943bcdca468b39c6bcc')

build() {
  cd "$pkgname-$pkgver"

  python setup.py build

  #python -m build --wheel --outdir="$startdir/dist"
}

package() {
  cd "$pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
#  pip install \
#    --verbose \
#    --disable-pip-version-check \
#    --no-warn-script-location \
#    --ignore-installed \
#    --no-compile \
#    --no-deps \
#    --root="$pkgdir" \
#    --prefix=/usr \
#    --no-index \
#    --find-links="file://$startdir/dist" \
#    $pkgname

  rm -rf "$pkgdir/usr/lib/python$_pyver/site-packages/tests"
}

